home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
ROOMMAZE.ZIP
/
ROOMMAZE.DOC
< prev
next >
Wrap
Text File
|
1993-10-18
|
3KB
|
57 lines
ROOMMAZE.DOC
Documentation for ROOMMAZE.EXE - a maze generator, which generates
"room" style mazes, a generator which may be of interest to those working
on the Rehack project, if any are still tinkering with random generators.
Mazes, and maze-generation logic are something of a hobby of mine. I
downloaded MAZEGEN version 01.00.00 from this library out of curiousity
regarding the generation routines. I then became interested in the
Rehack project itself.
I am not entirely familiar with the Rehack project, but it does look
interesting, so I thought I'd try to make some contribution. The
algorithm used herein is not particularly eloquent, but it does seem to
generate mazes that are stylistically similar to many dungeon-type mazes.
Instructions:
ROOMMAZE requires a VGA display, since it displays the maze as it is
being created. To run the program, simply type "roommaze" from the command
line and the maze will be drawn. The program does not include any user
input functions since it is primarily intended to be a tutorial of this
particular generation routine. Once the maze has been drawn the program
will pause and allow you to view the maze until a key is pressed, it then
exits.
Try running it a few times before changing any values to get a feel for
how many very different mazes can be generated by a single set of numbers.
Possibly interesting modifications:
1. Ask for user input.
2. Weight the distribution of room sizes, leading to more or less
corridors (corridors simply being very thin rooms).
3. Define one of the floor types to be solid, thereby providing dead
space within a maze (simply redefine F? as a numerically smaller
value than F1 currently - ClarifyWalls will handle the rest).
4. Implement a border tracing algorithm that identifies unique neighbors
and creates only the minimum number of doors required.
5. Convert it to C++ so that it compiles to twice the size, and runs
half as fast. (sorry, I've been editorializing haven't I? ;-)
Actually, removing the "putpixel" function from WriteMaze will
increase speed dramatically.
My permission is given to the developers of the Rehack project to use
this code in any way desired, provided that: a) no fee is charged for it;
b) if any of this code is incorporated within another program, please give
me credit somewhere in the documentation.
10/18/93
David Bollinger
P.O. Box 894
Denair, CA 95316